package tw.com.softleader.gary.movie.web;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MovieAddServlet extends HttpServlet {
	
	public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {

		
		response.setContentType("text/html");
		
		PrintWriter out = response.getWriter();
		
		out.println("<form action='MovieInsertServlet' method='post'>");
		out.println("ID: <input type='text' name='id'/> <br/>");
		out.println("NAME: <input type='text' name='name'/> <br/>");
		out.println("LOCAL_NAME: <input type='text' name='localName'/> <br/>");
		out.println("<input type='submit'/>");
		out.println("</form>");
		
		out.println("<a href='MovieListServlet'>List</a>");
		
	}
}
